<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui">

	<ui:composition template="/template/templatecomum.xhtml">
		<ui:define name="informacoes" >

		<h:panelGroup >
			<div id="left" style="border-top-color: rgb(67, 145, 67); border-right-color: rgb(67, 145, 67); border-bottom-color: rgb(67, 145, 67); border-left-color: rgb(67, 145, 67); ">
				<h3 class="ttl" style="color: rgb(67, 145, 67); ">Recados</h3>
			
			
		<h:form>
			<c:if test="${not empty recado.recados}">
			
				<table>
				<tr class="captions">  
					<th>Destino</th>
					<th>Origem</th>
					<th>Recado</th>
				</tr>
				<c:forEach var="item" varStatus="linha" items="#{recado.recados}">
					<tr style="${ linha.count%2==0 ? 'background-color: #FFFFFF' :'background-color: #BBDDBB'}">
						<td> 
							<h:outputText value="#{item.idUsuarioDestino.nome}"/>
						</td>
						<td> 
							<h:outputText value="#{item.idUsuarioOrigem.nome}"/>
						</td>
						<td> 
							<h:outputText value="#{item.recado}"/>
						</td>
					</tr>
				</c:forEach>
				</table>
			</c:if>
			<c:if test="${empty recado.recados}">
			
				<p align="center" style="color: #00AA00;font-weight: bold;">Nenhum Recado Encontrado.</p>
			</c:if>
			
			

		
		</h:form>
		
		</div>
		</h:panelGroup>
		

		</ui:define>
	</ui:composition>
</html>